package com.memorypalace.deck.mapper;

import java.util.List;

import com.memorypalace.deck.vo.NoteQueryPageBean;
import com.memorypalace.deck.vo.ScreenConditions;
import com.memorypalace.pojo.Note;
import com.memorypalace.pojo.NoteType;

public interface NoteMapper {
	public Note getNoteWithDeckAndNoteTypeById(String noteId);
	public List<Note> getNotesWithNoteTypeByDeckId(String deckId);
	public List<Note> getNotesByDeckId(String deckId);
	List<Note> getNotesByScreenConditions(ScreenConditions screenConditions);
	public NoteQueryPageBean getNoteQueryPageBeanByNoteQueryPageBean(NoteQueryPageBean noteQueryPageBean);
	public NoteQueryPageBean getNoteQueryPageBeanByUserIdWithNoteQueryPageBean(NoteQueryPageBean noteQueryPageBean);
	public Integer getCountByNoteQueryPageBean(NoteQueryPageBean noteQueryPageBean);
	public Integer getCountByUserId(NoteQueryPageBean noteQueryPageBean);
	public Integer updateNote(Note note);
	Boolean addNote(Note note);
	Boolean deleteNote(String noteId);
}
